package com.android.client;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;

public class com_search extends Activity{
	private EditText CS_ISBN,CS_Author;
	private Button CS_Btn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.com_search);
		CS_ISBN=(EditText)findViewById(R.id.CS_ISBN);
		CS_Author=(EditText)findViewById(R.id.CS_Author);
		CS_Btn=(Button)findViewById(R.id.CS_Btn);
		CS_Btn.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i=new Intent();
				Bundle b=new Bundle();
				b.putString("ISBN", CS_ISBN.getText().toString());
				b.putString("Author", CS_Author.getText().toString());
				i.putExtras(b);
				i.setClass(com_search.this, search1.class);
				startActivity(i);
			}		
		});

	}

}
